#!/bin/bash
###
 # @Author: 李琪 liqi@lark2game.com
 # @Date: 2025-07-09 10:30:05
 # @LastEditors: 李琪 liqi@lark2game.com
 # @LastEditTime: 2025-08-08 16:57:09
 # @FilePath: /MiniTemplate/gen.sh
 # @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
###

WORKSPACE=..
LUBAN_DLL=$WORKSPACE/Luban/Luban.dll
CONF_ROOT=.

#客户端：二进制
dotnet $LUBAN_DLL \
    -t client \
    -c typescript-bin \
    -d bin \
    -x bin.fileExt=bin \
    --conf $CONF_ROOT/luban.conf \
    -x typescript-bin.outputCodeDir=../../gameWorld/assets/script/template \
    -x bin.outputDataDir=../../gameWorld/assets/resources/template1

#客户端：json
dotnet $LUBAN_DLL \
    -t client \
    -c typescript-json \
    -d json \
    --conf $CONF_ROOT/luban.conf \
    -x typescript-json.outputCodeDir=clientCode \
    -x json.outputDataDir=clientJson


#服务器
 dotnet $LUBAN_DLL \
     -t server \
     -d json \
     --conf $CONF_ROOT/luban.conf \
     -x json.outputDataDir=serverJson